package c.j.a.d.a.j;

import android.graphics.BitmapFactory;
import c.j.a.d.b.e.b;
import c.j.a.d.b.i.h;
import c.j.a.d.b.n.a;
import java.io.InputStream;

/* compiled from: NotificationIconCache */
public class c implements Runnable {
    public final /* synthetic */ String a;
    public final /* synthetic */ int b;
    public final /* synthetic */ d c;

    public c(d dVar, String str, int i) {
        this.c = dVar;
        this.a = str;
        this.b = i;
    }

    public void run() {
        InputStream inputStream = null;
        try {
            h f = b.f(true, 0, this.a, null, 0, false, null);
            if (f == null) {
                a.q(null);
                return;
            }
            inputStream = f.a();
            this.c.a.put(Integer.valueOf(this.b), BitmapFactory.decodeStream(inputStream));
            a.q(inputStream);
        } catch (Exception e) {
            e.printStackTrace();
            a.q(inputStream);
        } catch (Throwable th) {
            a.q(inputStream);
        }
    }
}
